export function summaryTranslator(str) {
  str = str.replace(/long.xxx/g, '经度')
  str = str.replace(/long.yyy/g, '纬度')
  str = str.replace(/highThreePhaseAcCurrent.phaseACurrent/g, '高三相交流电流')
  str = str.replace(/highThreePhaseAcCurrent.phaseBCurrent/g, '高三相交流电流')
  str = str.replace(/highThreePhaseAcCurrent.phaseCCurrent/g, '高三相交流电流')
  str = str.replace(/lowThreePhaseAcCurrent.phaseACurrent/g, '低三相交流电流')
  str = str.replace(/lowThreePhaseAcCurrent.phaseBCurrent/g, '低三相交流电流')
  str = str.replace(/lowThreePhaseAcCurrent.phaseCCurrent/g, '低三相交流电流')
  str = str.replace(/humiture.humidity/g, '湿度')
  str = str.replace(/humiture.temperature/g, '温度')
  str = str.replace(/remainderCurrent.remainderCurrent/g, '剩余电流')
  str = str.replace(/switch.switch1/g, '开关量1')
  str = str.replace(/switch.switch2/g, '开关量2')
  str = str.replace(/temperature.temperature/g, '温度')
  str = str.replace(/threePhaseAcSwitch.phaseASwitch/g, '三相交流电开关')
  str = str.replace(/threePhaseAcSwitch.phaseBSwitch/g, '三相交流电开关')
  str = str.replace(/threePhaseAcSwitch.phaseCSwitch/g, '三相交流电开关')
  str = str.replace(/threePhaseAcVoltage.phaseAVoltage/g, '三相交流电压')
  str = str.replace(/threePhaseAcVoltage.phaseBVoltage/g, '三相交流电压')
  str = str.replace(/threePhaseAcVoltage.phaseCVoltage/g, '三相交流电压')
  str = str.replace(/waterLevel.waterLevel/g, '水位')
  str = str.replace(/waterPressure.waterPressure/g, '水压')
  return str
}
